package com.qezhhnjy.bilibili.controller;

import com.qezhhnjy.bilibili.entity.CommonResult;
import com.qezhhnjy.bilibili.entity.Payment;
import com.qezhhnjy.bilibili.service.PaymentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zhaoyangfu - 2021/4/4 0:13
 */
@Slf4j
@RestController
@RequestMapping("/order")
public class OrderOpenFeignController {

    @Resource
    private PaymentService paymentService;

    @PostMapping("/payment/create")
    public CommonResult<String> create(@RequestBody Payment payment) {
        return paymentService.create(payment);
    }
}
